home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / bench / x.txt / 000076_arice@benchmark-systems.com_Fri Oct 26 12:15:42 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  6KB  |  123 lines

  1. Article: 12889 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!newsfeed.mathworks.com!news.maxwell.syr.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail
  3. From: arice@benchmark-systems.com (Alan Rice)
  4. Newsgroups: comp.protocols.kermit.misc,comp.unix.aix
  5. Subject: Re: Kermit droping back to a login
  6. Date: 26 Oct 2001 09:00:11 -0700
  7. Organization: http://groups.google.com/
  8. Lines: 104
  9. Message-ID: <d86c5ce1.0110260800.7b127dbf@posting.google.com>
  10. References: <d86c5ce1.0110221123.53a7102b@posting.google.com> <d86c5ce1.0110230446.686fdc5@posting.google.com> <9r3rb4$c7t$1@newsmaster.cc.columbia.edu> <d86c5ce1.0110250443.273b22ef@posting.google.com> <9r92os$373$1@newsmaster.cc.columbia.edu>
  11. NNTP-Posting-Host: 63.170.151.15
  12. Content-Type: text/plain; charset=ISO-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-Trace: posting.google.com 1004112011 10823 127.0.0.1 (26 Oct 2001 16:00:11 GMT)
  15. X-Complaints-To: groups-abuse@google.com
  16. NNTP-Posting-Date: 26 Oct 2001 16:00:11 GMT
  17. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12889 comp.unix.aix:224934
  18.  
  19. jaltman@watsun.cc.columbia.edu (Jeffrey Altman) wrote in message news:<9r92os$373$1@newsmaster.cc.columbia.edu>...
  20. > In article <d86c5ce1.0110250443.273b22ef@posting.google.com>,
  21. > Alan Rice <arice@benchmark-systems.com> wrote:
  22. > :Frank da Cruz wrote:
  23. > : > If you are dialing directly into an AIX serial port, that's a different
  24. > : > story, but it's also a scenario I can't duplicate for testing.  The most
  25. > : > likely suspect is Kermit's calls to the /dev/tty driver.  When Kermit
  26. > : > starts, it gets and saves your terminal modes, and then puts the terminal
  27. > : > into "CBREAK" mode so it can read a character at a time from your keyboard.
  28. > : > When it exits, it restores the original terminal modes.  So the first
  29. > : > question is: can you start Kermit and then immediately EXIT from it without
  30. > : > getting logged out?
  31. > : 
  32. > : I am dialing in to the box in question.
  33. > : 
  34. > : I can start and stop kermit with no problems. But I can not issue a
  35. > : SEND or a RECEIVE without it kicking me out to a login prompt.
  36. > : 
  37. > : ALan R
  38. > The problem is most likely the one that Frank described. The attempt
  39. > to reset the terminal modes is causing the PTY to terminate.  Therefore,
  40. > the getty driver executes a new login() command on the device.
  41. > This would be a bug in the PTY driver.  There are many such bugs that
  42. > have been fixed with patches from IBM.  I'm not sure which version of AIX
  43. > you are running, but the IBM AIX APAR database is the place to start.
  44. > Search for "pty".
  45. >  Jeffrey Altman * Sr.Software Designer      C-Kermit 8.0 Beta available
  46. >  The Kermit Project @ Columbia University   includes Secure Telnet and FTP
  47. >  http://www.kermit-project.org/             using Kerberos, SRP, and 
  48. >  kermit-support@kermit-project.org          OpenSSL.  SSH soon to follow.
  49.  
  50. Jeffery,
  51.  
  52. Yes it is a "bug" in the driver That Dale Talcott told me about back
  53. in May. The problem is IBM calls it a standard and I don't see it
  54. going away. And my product vendor that ships my hardware is using the
  55. AIX level that includes this.
  56. Here's a copy of the email I sent to Frank back it May.
  57.  
  58. :IY06484 modifies the pseudo-tty driver so that if you perform a 
  59. :zero-length write on one size, it shows up as a zero-length read on 
  60. :the other side.  For every other file type in Unix, a return of 0 
  61. :from read() indicates end-of-file, but those lunatic people in the 
  62. :Single-Unix standards group decided that pseudo-tty's should be an 
  63. :exception to this principle.  IY06484 brings AIX into compliance with
  64. :this idiocy.  (Can you tell that I am not pleased with this part of 
  65. :the standard? :-)
  66.  
  67. :This breaks several third-party programs, as well as IBM's own 
  68. :"script" program.  The only fix is to track down programs that 
  69. :manipulate pseudo-tty's and change how they detect when the tty is 
  70. :closed.  (Our list so far is script, sshd, expect, and PBS.)
  71.  
  72. :If this turns out to be your problem, you'll need to modify kermit. 
  73. :There's a chance the kermit people have already done this, so you 
  74. :might check that you are running the latest version.
  75.  
  76. :-- 
  77. :Dale Talcott, Purdue University Computing Center
  78. :   aeh@quest.cc.purdue.edu 
  79.  
  80. And here's Franks reply:
  81.  
  82. :> In the AIX user group Dale Talcott sent me the following email.
  83. Would this
  84. :> explain the behavior I'm seeing?
  85. :> 
  86. :No, but it's interesting anyway, because we do have "script" and
  87. "expect"
  88. :like functions in C-Kermit, which work through ptys.  But you're not
  89. using
  90. :them.  I suppose we'll have to look and see if our pty code treats
  91. 0-length
  92. :reads as EOF.  I hope not.  Hmmm, OK, I just looked and sure
  93. enough...
  94.  
  95. :        if (read(syncpipe[0], &c, 1) == 0) { /* Slave side died */
  96.  
  97. :But that's in just one place so maybe there's a workaround...
  98.  
  99. :Anyway, as I noted previously, I can't reproduce the problem you
  100. reported
  101. :(getting logged out when you send a FINISH command) when making a
  102. Telnet
  103. :connection with C-Kermit from AIX 4.3.3 (or any other platform), and
  104. I have
  105. :no way of making a dialout connection from AIX with C-Kermit. 
  106. However, I
  107. :don't see what difference the connection type would make.
  108.  
  109. :So I take it the IBM C compiler is an extra-cost option on AIX? 
  110. Jerks.
  111.  
  112. :- Frank
  113.  
  114. If you need to I can provide you with access to the box here that is
  115. broken and does not work. Tell me what we need to do to fix it.
  116.  
  117. Alan R
  118.